package com.tedu.interceptor.controller;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultMap;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.w3c.dom.ls.LSOutput;
@RestController
@RequestMapping("/users/")
public class UserController {
    @PostMapping("reg")
    public String reg(){
        System.out.println("UserController:reg()方法调用了，处理用户注册");
        return "注册成功";
    }
    @PostMapping("login")
    public String login(){
        System.out.println("UserController:login()方法调用了,处理用户登录");
        return "登录成功";
    }
}
